gl renderer: Fix up texture cache key
authorAlexander Larsson <alexl@redhat.com>
Mon, 5 Oct 2020 13:19:27 +0000 (15:19 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 5 Oct 2020 13:43:04 +0000 (15:43 +0200)
The commit e14d2be1 forgot to actually set the parent_rect in the texture
key in the case it is necessary.

gsk/gl/gskglrenderer.c

index 16a76dbff879771f5f45792ac9564f9633e2ab7f..edf6f402cea4d2800943542f33fdbdec5d39ede3 100644 (file)
@@ -3828,6 +3828,7 @@ add_offscreen_ops (GskGLRenderer         *self,
   /* Check if we've already cached the drawn texture. */
   key.pointer = child_node;
   key.pointer_is_child = TRUE; /* Don't conflict with the child using the cache too */
+  key.parent_rect = *bounds;
   key.scale = ops_get_scale (builder);
   key.filter = filter;
   cached_id = gsk_gl_driver_get_texture_for_key (self->gl_driver, &key);